package com.ea.eadp.nexus.test.pageDefinition;

import org.openqa.selenium.WebDriver;

import com.ea.eadp.nexus.test.common.Constant;
import com.ea.eadp.nexus.test.common.TestUtil;

public class SignupPageWeb2 extends Signup_Web {

    public SignupPageWeb2(WebDriver driver) {
        super(driver);
        this.setUri(getWeb2ConnectUrl());
    }

    private static String getWeb2ConnectUrl() {
        String format = "%s/connect/auth?client_id=%s&response_type=code&display=web2/create&redirect_uri=%s";
        return String.format(
                format,
                TestUtil.BaseConnectURI(),
                "new-web2-test-client",
                Constant.EA_URL
                );
    }
}
